package org.mspring.mlog.dao.impl;

import org.mspring.mlog.dao.UserEntityDao;
import org.mspring.mlog.entity.UserEntity;
import org.mspring.nbee.db.dao.impl.BaseDao;
import org.mspring.nbee.db.dao.sql.Sql;
import org.springframework.stereotype.Repository;

/**
 * @author Gao Youbo
 * @since 2014-09-10 11:51:15
 */
@Repository
public class UserEntityDaoImpl extends BaseDao<UserEntity> implements UserEntityDao {

    @Override
    public UserEntity findByUsername(String username) {
        Sql sql = new Sql("select * from t_user where username = ?", username);
        return findBySql(sql);
    }

}
